package net.xinqushi.design.COR.impl;

import net.xinqushi.design.COR.ConsumeHandler;

public class BossHandler extends ConsumeHandler {
    @Override
    public void doHandler(String user, double free) {
        if(user.equals("xjie")){
            System.out.println("BOSS给予报销:" + free);
        }else{
            System.out.println("Boss got out");

        }

        //现在上面没有人了，暂时先加上.
        if(getNextHandler() != null)
            getNextHandler().doHandler(user,free);
    }
}
